package com.atmk.atmk.designMode.结构型.桥接模式.测试;

import com.atmk.atmk.designMode.结构型.桥接模式.具体实现化角色.PayFaceMode;
import com.atmk.atmk.designMode.结构型.桥接模式.具体实现化角色.PayFingerprintMode;
import com.atmk.atmk.designMode.结构型.桥接模式.扩展抽象化角色.WxPay;
import com.atmk.atmk.designMode.结构型.桥接模式.扩展抽象化角色.ZfbPay;
import com.atmk.atmk.designMode.结构型.桥接模式.抽象化角色.Pay;
import org.junit.Test;

import java.math.BigDecimal;

public class Test01 {
    @Test
    public void test() {
        System.out.println("测试场景1: 微信支付、人脸方式.");
        Pay wxpay = new WxPay(new PayFaceMode());
        wxpay.transfer("wx_00100100","10001900",new BigDecimal(100));

        System.out.println();

        System.out.println("测试场景2: 支付宝支付、指纹方式");
        Pay zfbPay = new ZfbPay(new PayFingerprintMode());
        zfbPay.transfer("jlu1234567","567689999999",new BigDecimal(200));
    }
}
